package cn.wolfcode.mapper;

import cn.wolfcode.domain.EmpNotice;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmpNoticeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(EmpNotice record);

    EmpNotice selectByPrimaryKey(Long id);

    List<Long> selectAll();

    int updateByPrimaryKey(EmpNotice record);

    List<EmpNotice> selectForList(QueryObject qo);


    void updateStatu(EmpNotice empNotice);

    EmpNotice selectBytwoId(@Param("id") Long id, @Param("userId") Long userId);

    int selectUnRead(@Param("id") Long id, @Param("b") boolean b);
}